import absevnt from '../abseventsvc.js'
import { GlobalVar } from '../../canvas/common/globalvar.js';
import {LGXEnums}  from '../../canvas/common/sysenum.js';

import { FileAccessSvc } from '../service/FileAccessSvc.js';

class LMosSelGraphSvc extends absevnt.IEventSvc {
    constructor() {
        super();
        console.log(this.store);
    }
    act(e) {
        console.log("LMosSelGraphSvc:xxx---------");
        if (GlobalVar.runningMode == LGXEnums.runningMode.prototype) {
            if (e.xlink && e.xlink.length > 0) {
                FileAccessSvc.open(e.xlink);
            }
        }
    }
}

export default { LMosSelGraphSvc }